module.exports = {
  dest: './dist',
  base: '/yoy/',
  title: 'yoy-blog',
  description: '',
  // head: [
  //   ['link', { rel: 'icon', href: `/logo.png` }],
  //   ['link', { rel: 'manifest', href: '/manifest.json' }],
  //   ['meta', { name: 'theme-color', content: '#3eaf7c' }],
  //   ['meta', { name: 'apple-mobile-web-app-capable', content: 'yes' }],
  //   ['meta', { name: 'apple-mobile-web-app-status-bar-style', content: 'black' }],
  //   ['link', { rel: 'apple-touch-icon', href: `/icons/apple-touch-icon-152x152.png` }],
  //   ['link', { rel: 'mask-icon', href: '/icons/safari-pinned-tab.svg', color : '#3eaf7c' }],
  //   ['meta', { name: 'msapplication-TileImage', content: '/icons/msapplication-icon-144x144.png' }],
  //   ['meta', { name: 'msapplication-TileColor', content: '#000000' }]
  // ],
  serviceWorker: false,
  themeConfig: {
    repo: 'yoy',
    editLinks: true,
    docsDir: 'docs',
    lastUpdated: '上次更新',
    editLinkText: '在 GitHub 上编辑此页',

    nav: [
      {
        text: '数据结构',
        link: '/ds/prepare/'
      },
      {
        text: '设计模式',
        link: '/designPatterns/prepare/'
      },
      {
        text: '工程化',
        link: '/engineering/prepare/'
      },
      {
        text: '性能优化',
        link: '/performance_optimization/prepare/'
      },
      {
        text: 'javaScript',
        link: '/javaScript/prepare/'
      },
      // {
      //   text: 'css',
      //   link: '/css/prepare/'
      // },
      // {
      //   text: 'html',
      //   link: '/html/prepare/'
      // },
      // {
      //   text: 'vue',
      //   link: '/vue/prepare/'
      // },
      // {
      //   text: 'webpack',
      //   link: 'webpack/prepare/'
      // }

    ],
    sidebar: {
      '/ds/': [
        {
          title: '准备工作',
          collapsable: false,
          children: [
            ['prepare/', 'Introduction'],
            'prepare/time-complexity',
            'prepare/spatial-complexity',
            'prepare/structure'
          ]
        },
        {
          title: '数组(Array)',
          collapsable: false,
          children: [
            ['array/', 'Introduction'],
            'array/base-use',
          ]
        },
        {
          title: '栈(Stack)',
          collapsable: false,
          children: [
            ['stack/', 'Introduction'],
            'stack/base-use',
            'stack/usage'
          ]
        },
        {
          title: '队列(Queue)',
          collapsable: false,
          children: [
            ['queue/', 'Introduction'],
            'queue/base-use',
            'queue/usage'
          ]
        },
        {
          title: '链表(Linked-List)',
          collapsable: false,
          children: [
            ['Linked/', 'Introduction'],
            'Linked/base-use',
            'Linked/usage'

          ]
        },
        {
          title: '字典(Map)',
          collapsable: false,
          children: [
            ['map/', 'Introduction'],
            'map/base-use',
            'map/usage',

          ]
        },
        {
          title: '集合(Set)',
          collapsable: false,
          children: [
            ['set/', 'Introduction'],
            'set/base-use',
            'set/usage',

          ]
        },
        {
          title: '树(Tree)',
          collapsable: false,
          children: [
            ['tree/', 'Introduction'],
            'tree/base-use',
            'tree/usage',

          ]
        },
        {
          title: '堆(Heap)',
          collapsable: false,
          children: [
            ['heap/', 'Introduction'],
            'heap/base-use',
            'heap/usage',
          ]
        },
        {
          title: '图(Graph)',
          collapsable: false,
          children: [
            ['graph/', 'Introduction'],
            'graph/base-use',
            'graph/usage',
          ]
        },
        {
          title: '排序(Sort)',
          collapsable: false,
          children: [
            ['sort/', 'Introduction'],
            'sort/bubbleSort',
            'sort/selectionSort',
            'sort/insertionSort',
            'sort/mergeSort',
            'sort/quickSort',
          ]
        },
        {
          title: '搜索(Search)',
          collapsable: false,
          children: [
            ['search/', 'Introduction'],
            'search/sequentialSearch',
            'search/binarySearch',
          ]
        },
        {
          title: '算法设计',
          collapsable: false,
          children: [
            ['algorithmDesign/', 'Introduction'],
            'algorithmDesign/divideAndRule',
            'algorithmDesign/dynamicProgramming',
            'algorithmDesign/greedyAlgorithm',
            'algorithmDesign/backtrackingAlgorithm',
          ]
        },
      ],
      '/designPatterns/': [
        {
          title: '准备工作',
          collapsable: false,
          children: [
            ['prepare/', 'Introduction'],
            'prepare/objectOriented',
            'prepare/designPrinciple',
          ]
        },
        {
          title: '单例模式',
          collapsable: false,
          children: [
            ['single/', 'Introduction'],
            'single/coding',
          ]
        },
        {
          title: '工厂模式',
          collapsable: false,
          children: [
            ['factory/', 'Introduction'],
            'factory/coding',
          ]
        },
        {
          title: '适配器模式',
          collapsable: false,
          children: [
            ['adapter/', 'Introduction'],
            'adapter/coding',
          ]
        },
        {
          title: '装饰器模式',
          collapsable: false,
          children: [
            ['decorator/', 'Introduction'],
            'decorator/coding',
          ]
        },
        {
          title: '代理模式',
          collapsable: false,
          children: [
            ['proxy/', 'Introduction'],
            'proxy/coding',
          ]
        },
        {
          title: '外观模式',
          collapsable: false,
          children: [
            ['facade/', 'Introduction'],
            'facade/coding',
          ]
        },
        {
          title: '观察者模式',
          collapsable: false,
          children: [
            ['observer/', 'Introduction'],
            'observer/coding',
          ]
        },
        {
          title: '迭代器模式',
          collapsable: false,
          children: [
            ['iteration/', 'Introduction'],
            'iteration/coding',
          ]
        },
        {
          title: '状态模式',
          collapsable: false,
          children: [
            ['state/', 'Introduction'],
            'state/coding',
          ]
        },
        {
          title: '其他设计模式',
          collapsable: false,
          children: [
            ['other/', 'Introduction']
          ]
        },
        {
          title: '综合应用',
          collapsable: false,
          children: [
            ['application/', 'Introduction']
          ]
        },
      ],
      '/engineering/': [
        {
          title: '准备工作',
          collapsable: false,
          children: [
            ['prepare/', 'Introduction'],
          ]
        },
        {
          title: '模块化',
          collapsable: false,
          children: [
            ['modules/', 'Introduction'],
            'modules/commonjs',
            'modules/amd_cmd',
            'modules/ESModule',
          ]
        },
        {
          title: 'webpack',
          collapsable: false,
          children: [
            ['webpack/', 'Introduction'],
          ]
        },
        {
          title: 'zbestPc项目改造',
          collapsable: false,
          children: [
            ['zbestPc/', 'Introduction'],
            'zbestPc/webpack',
            'zbestPc/jsSeparate',
            'zbestPc/env_build',
            'zbestPc/split_css',
            'zbestPc/compress',
            'zbestPc/splitChunk',
            'zbestPc/ejs',
            'zbestPc/clean',
          ]
        },
        {
          title: 'zbestPc项目进行Vue改造',
          collapsable: false,
          children: [
            ['vuejsReform/', 'Introduction'],
          ]
        }
      ],
      '/performance_optimization/': [
        {
          title: '准备工作',
          collapsable: false,
          children: [
            ['prepare/', 'Introduction'],
          ]
        },
        {
          title: '性能优化指标与测量工具',
          collapsable: false,
          children: [
            'index_tools/index_measure',
            'index_tools/rail',
            'index_tools/tools',
          ]
        },
        {
          title: '渲染优化',
          collapsable: false,
          children: [
            ['render/', 'Introduction']
          ]
        },
        {
          title: '代码优化',
          collapsable: false,
          children: [
            ['coding/', 'Introduction'],
            'coding/v8',
            'coding/memory_management'
          ]
        },
        {
          title: '资源的压缩与合并',
          collapsable: false,
          children: [
            ['resources/', 'Introduction'],
            'resources/img',
            'resources/webpack',
          ]
        },
        {
          title: '传输压缩',
          collapsable: false,
          children: [
            ['transfer/', 'Introduction'],
          ]
        },
        {
          title: '更多优化方案',
          collapsable: false,
          children: [
            ['more/flex', '使用flex优化布局'],
            'more/priority',
            'more/preload',
            // 'more/windowing',
          ]
        }
      ],
      '/javaScript/': [
        {
          title: '准备工作',
          collapsable: false,
          children: [
            ['prepare/', 'Introduction'],
          ]
        },
        {
          title: '变量类型和计算',
          collapsable: false,
          children: [
            'variable/value_type',
            'variable/quote_type',
            'variable/diff',
            'variable/type_transformation'
          ]
        },
        {
          title: '原型和原型链',
          collapsable: false,
          children: [
            'prototype/',
          ]
        },
        {
          title: '作用域和闭包',
          collapsable: false,
          children: [
            'scope/',
            'scope/closure',
            'scope/this'
          ]
        },
        {
          title: '异步',
          collapsable: false,
          children: [
            'async/',
            'async/promise',
            'async/event_loop',
            'async/async_await',
            'async/macroTask_microTask',
          ]
        }
      ]
    },
  }
}